import BarChart from "./components/BarChart"
import './index.scss'

const Home = () => {
    const typeOne = {
        title: '三大框架满意度',
        xAxisData: ['Vue', 'React', 'Angular'],
        seriesData: [54, 73, 68],
        seriesName: '满意度',
        yMax: '100',
        style: { width: '500px', height: '400px' }
    }
    const typeTwo = {
        title: '三大框架使用度',
        xAxisData: ['Vue', 'React', 'Angular'],
        seriesData: [61, 70, 55],
        seriesName: '使用度',
        yMax: 100,
        style: { width: '500px', height: '400px' }
    }

    return (
        <div className="home">
            <BarChart type={typeOne} />
            <BarChart type={typeTwo} />
        </div>
    )
}

export default Home